<script lang='ts' setup name='App'>  
 import { ref } from 'vue' 

 const  username = ref('admin')     

 function getInput(event:Event){

     const inputEvent  = event as InputEvent ;

     username.value = (<HTMLInputElement>inputEvent.target).value
 }

const password = ref('123456')


</script>  
  
<template>  
         

      <!-- 用户名   <input type="text" v-bind:value="username" >  -->
      用户名   <input type="text" :value="username"  @input="getInput($event)"> 


      用户名   <input type="text"  v-model="password"> 


      <input type="checkbox" >



</template>  
  
<style scoped>  

</style>  